package com.yuanfengPlus.basicInfoManage.loginfo.controller;


import com.yuanfengPlus.basicInfoManage.loginfo.model.LogInfo;
import com.yuanfengPlus.basicInfoManage.loginfo.service.impl.LogInfoServiceImpl;
import com.yuanfengPlus.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("LogInfo")
@Api(tags = "日志信息管理")
@RestController
@CrossOrigin
public class LogInfoController {
    @Resource
    private LogInfoServiceImpl lisi;
    @GetMapping("SelectAll")
    @ApiOperation("查询全部日志信息")
    public Result<List<LogInfo>> SelectAll(){
        return lisi.selectAll();
    }
}
